﻿#region File Description
// EpicLeadManager
// EpicLeadManager
// SQLiteManager.cs
#endregion

#region Using References
using System;
using EpicLeadManager.Properties;
using SQLite;

#endregion

namespace EpicLeadManager.Controllers.SQLManager
{
    public class SqLiteManager
    {
        #region Fields & Properties
        private SQLiteConnection _sqLiteConnection;

        public SQLiteConnection Db
        {
            get { return _sqLiteConnection; }
        }
        #endregion

        #region Public Methods
        internal void LoadDatabase<T>()
        {
            _sqLiteConnection = new SQLiteConnection(Settings.Default.DbName);
            _sqLiteConnection.CreateTable<T>();
        }
        #endregion
    }
}